Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

283
Vistas
jQuery Toggle Class on "a" Link Hover

I have a custom cursor div which changes when hovering over various elements. So far, I have the cursor expanding on hover of .nav-item-wrapper and shrinking on hover of p.

I'm attempting to have the .cursor-div is--link class toggle on hover of all a but running into problems.

The current draft URL

Here is my jQuery inside of the <body>:

<script>

$('.nav-item-wrapper').on('mouseenter mouseleave', function() {
  $(this).toggleClass('is--active');
  $(this).find('.nav-highlight').toggleClass('is--active');
});

/**pointer link hover toggle**/
$('.nav-item-wrapper').not('.w--current').on('mouseenter mouseleave', function() {
  $('.cursor-div').toggleClass('is--link');
});

/** pointer text hover toggle **/
$('p').on('mouseenter mouseleave', function() {
  $('.cursor-div').toggleClass('is--text');
});

</script>

I attempted to add this but it interferes with the .nav-item-wrapper class change.

$('a').on('mouseenter mouseleave', function() {
  $(cursor-div).toggleClass('is--link');;
});
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda